# @Time : 2021-05-29 14:10 
# @Author : baldSun
# @File : main.py 
# @Software: PyCharm

import mysql

# if __name__ == '__main__':
    # 日期转换测试
    # date = '2000-01-04'
    # print(date.replace('-', ''))

    # op_mysql = mysql.OperationMysql()
    # # res = op_mysql.search_one("SELECT *  from newspaper")
    # res = op_mysql.get_all('ah_yijia')
    # print(res[0])

    # 字典增加测试
    # dict = {'name':'bonnie'}
    # age = 'age'
    # dict[age] = '90'
    # print(dict)

from datetime import datetime

if __name__ == '__main__':
    text = '2020-01-31'
    cur_day = datetime.strptime(text, '%Y-%m-%d')
    last_day = datetime(2019, 3, 10)
    print((cur_day - last_day).days)  # 1
    if -1 < 0 :
        print('yes')
